<T:ViewBase x:Class="WPFExcelReport.TLIEFAD02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LSAMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLIEFAD.LSAMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LSALIEFNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLIEFAD.LSALIEFNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LSAADRSL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLIEFAD.LSAADRSL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LSASPRACHKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLIEFAD.LSASPRACHKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LSAANREDE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLIEFAD.LSAANREDE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LSANAME1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLIEFAD.LSANAME1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LSANAME2:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLIEFAD.LSANAME2}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LSASTRASSE1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLIEFAD.LSASTRASSE1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LSASTRASSE2:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLIEFAD.LSASTRASSE2}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LSALAND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLIEFAD.LSALAND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LSAPLZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLIEFAD.LSAPLZ}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsLIEFAD,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwLIEFAD}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwLIEFAD, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="LSAMANDANT"
                                    Binding="{Binding Path=LSAMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSALIEFNR"
                                    Binding="{Binding Path=LSALIEFNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSALIEFNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAADRSL"
                                    Binding="{Binding Path=LSAADRSL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAADRSL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSASPRACHKZ"
                                    Binding="{Binding Path=LSASPRACHKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSASPRACHKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAANREDE"
                                    Binding="{Binding Path=LSAANREDE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAANREDE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSANAME1"
                                    Binding="{Binding Path=LSANAME1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSANAME1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSANAME2"
                                    Binding="{Binding Path=LSANAME2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSANAME2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSASTRASSE1"
                                    Binding="{Binding Path=LSASTRASSE1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSASTRASSE1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSASTRASSE2"
                                    Binding="{Binding Path=LSASTRASSE2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSASTRASSE2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSALAND"
                                    Binding="{Binding Path=LSALAND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSALAND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAPLZ"
                                    Binding="{Binding Path=LSAPLZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAPLZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAORT"
                                    Binding="{Binding Path=LSAORT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAORT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAPOSTF"
                                    Binding="{Binding Path=LSAPOSTF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAPOSTF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAPLZPOSTF"
                                    Binding="{Binding Path=LSAPLZPOSTF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAPLZPOSTF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSACOUNTY"
                                    Binding="{Binding Path=LSACOUNTY, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSACOUNTY}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSACITY"
                                    Binding="{Binding Path=LSACITY, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSACITY}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSATEL"
                                    Binding="{Binding Path=LSATEL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSATEL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSATELEX"
                                    Binding="{Binding Path=LSATELEX, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSATELEX}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAFAX"
                                    Binding="{Binding Path=LSAFAX, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAFAX}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSABTX"
                                    Binding="{Binding Path=LSABTX, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSABTX}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSABEM"
                                    Binding="{Binding Path=LSABEM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSABEM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAAPNA1"
                                    Binding="{Binding Path=LSAAPNA1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAAPNA1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAAPBEZ1"
                                    Binding="{Binding Path=LSAAPBEZ1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAAPBEZ1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAAPTEL1"
                                    Binding="{Binding Path=LSAAPTEL1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAAPTEL1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAAPNA2"
                                    Binding="{Binding Path=LSAAPNA2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAAPNA2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAAPBEZ2"
                                    Binding="{Binding Path=LSAAPBEZ2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAAPBEZ2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAAPTEL2"
                                    Binding="{Binding Path=LSAAPTEL2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAAPTEL2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAADRV1"
                                    Binding="{Binding Path=LSAADRV1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAADRV1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAADRV2"
                                    Binding="{Binding Path=LSAADRV2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAADRV2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAADRRUECK"
                                    Binding="{Binding Path=LSAADRRUECK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAADRRUECK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAKONDSL"
                                    Binding="{Binding Path=LSAKONDSL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAKONDSL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSALO"
                                    Binding="{Binding Path=LSALO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSALO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSALB"
                                    Binding="{Binding Path=LSALB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSALB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSALP"
                                    Binding="{Binding Path=LSALP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSALP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAUIDNR"
                                    Binding="{Binding Path=LSAUIDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAUIDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAMOBIL"
                                    Binding="{Binding Path=LSAMOBIL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAMOBIL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAMAILADR"
                                    Binding="{Binding Path=LSAMAILADR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAMAILADR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAILN"
                                    Binding="{Binding Path=LSAILN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAILN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAFILLER"
                                    Binding="{Binding Path=LSAFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAAENZL"
                                    Binding="{Binding Path=LSAAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAAENB"
                                    Binding="{Binding Path=LSAAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSAAEND"
                                    Binding="{Binding Path=LSAAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSAAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSANEUB"
                                    Binding="{Binding Path=LSANEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSANEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LSANEUD"
                                    Binding="{Binding Path=LSANEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LSANEUD}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
